package com.dwms.feign.declare;

import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.cebOrderReceipt.response.CebOrderReceiptResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName: CebOrderReceiptController
 * @Description: CebOrderReceipt
 * @Create 2025-09-06 14:17:45
 * @Author WH
 * @Since 1.0.0
**/

@FeignClient(value = "declare-server", path = "/cebOrderReceipt")
public interface CebOrderReceiptFeignClient {

    /**
     * 根据订单ID查询
     * @param query
     * @return
     */
    @PostMapping("/findByOrderId")
    Result<List<CebOrderReceiptResponse>> findByOrderId(@RequestBody QueryRequest query);
}
